<!---- SUI模板 on 2017/4/8 -->
<script ng-init="initCss('home-page/css/home.css')"></script>
<nav class="bar bar-tab">
    <a class="tab-item active external " href="#/home">
        <span class="icon icon-home"></span>
        <span class="tab-label">首页</span>
    </a>
    <a class="tab-item external" href="#/search">
        <span class="icon icon-search"></span>
        <span class="tab-label">检索</span>
    </a>
    <a class="tab-item external" href="#/individual-center">
        <span class="icon icon-me"></span>
        <span class="tab-label">个人中心</span>
    </a>
</nav>
<div class="content infinite-scroll" ng-init="pageInit()">
    <!-- 轮播图 -->
    <div  class="swiper-container" data-space-between='0' data-swiper-autoplay="2000">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <img ng-src="page/home-page/img/2.png" alt="">
                <!--<p class="img-words" ng-click="$parent.turnDetail(silder)">{{silder.groupTitle}}</p>-->
            </div>
            <div class="swiper-slide">
                <img ng-src="page/home-page/img/1.png" alt="">
                <!--<p class="img-words" ng-click="$parent.turnDetail(silder)">{{silder.groupTitle}}</p>-->
            </div>
            <div class="swiper-slide">
                <img ng-src="page/home-page/img/3.png" alt="">
                <!--<p class="img-words" ng-click="$parent.turnDetail(silder)">{{silder.groupTitle}}</p>-->
            </div>
        </div>
        <div class="swiper-pagination"></div>
    </div>

    <!--分类-->
    <div class="type-content normal-content">
        <div class="content-block">
            <p class="content-title">任务分类</p>
        </div>
        <div class="row">
            <div class="type-item col-25" ng-click="saveType(1)">
                <span class="fa fa-signing "></span>
                <p class="type-describe">兼职</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(2)">
                <span class="fa fa-modx"></span>
                <p class="type-describe">失物招领</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(3)">
                <span class="fa fa-group"></span>
                <p class="type-describe">随手任务</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(4)">
                <span class="fa fa-fort-awesome"></span>
                <p class="type-describe">游玩</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(5)">
                <span class="fa fa-rocket"></span>
                <p class="type-describe">电脑配件</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(6)">
                <span class="fa fa-plug"></span>
                <p class="type-describe">手机配件</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(7)">
                <span class="fa fa-refresh"></span>
                <p class="type-describe">旧物转手</p>
            </div>
            <div class="type-item col-25" ng-click="saveType(8)">
                <span class="fa fa-github-alt"></span>
                <p class="type-describe">代取快递</p>
            </div>
        </div>
    </div>

    <!--任务-->
    <div class="choose-content normal-content " >
        <div class="content-block">
            <p class="content-title">任务精选</p>
        </div>
        <div class="list-block media-list selected-tasks" ng-init="getHomeTask()">
            <ul>
                <li  ng-repeat="taskInfo in homeTaskList ">
                    <div  class="item-content">
                        <div class="item-media"  ng-click="getUserOtherId(taskInfo.taskCreatorUser.userId)">
                            <!--<img src="taskInfo.avatarImg.imgAddress" style='width: 4rem;'>-->
                            <img ng-if="!taskInfo.taskCreatorUser.userAvatarAddress" src="page/personal-profile-edit-page/images/avatar.png" style='width: 3rem;margin: .5rem 0'>
                            <img ng-if="taskInfo.taskCreatorUser.userAvatarAddress" ng-src="{{'http://www.xiaowenxiong.cn/scg/resources/img/'+taskInfo.taskCreatorUser.userAvatarAddress}}" style='width: 3rem;margin: .5rem 0'>
                        </div>
                        <div class="item-inner"  ng-click="getHomeTaskId(taskInfo.taskId)">
                            <div class="item-title-row">
                                <div class="item-title">{{taskInfo.taskCreatorUser.userNickName}}</div>
                            </div>
                            <div class="item-text">{{taskInfo.taskContent}}</div>
                        </div>
                    </div>
                </li>
            </ul>

        </div>

    </div>

    <!-- 加载提示符 -->
    <div class="infinite-scroll-preloader">
        <div class="preloader"></div>
    </div>
</div>
<div class="bar bar-header bar-to-search" >
    <div class="search-color searchbar">
        <a href="javascript:;" ng-click="turnSearch()" class="search-color searchbar-cancel" >搜索</a>
        <div class="search-input">
            <label class="search-color icon icon-search " for="search"></label>
            <input ng-model="searchInfo" type="search" class="search-color" id='search' placeholder='输入关键字...'/>
        </div>
    </div>
</div>
<div ng-init="suiMobileInit('home-page/js/home.js')"></div>